package com.study.spark.dao.session.top10;

import com.study.spark.domain.session.top10.Top10Session;
import com.study.spark.jdbc.JDBCHelper;

/**
 * top10活跃session的DAO实现
 * 
 * @author Administrator
 *
 */
public class Top10SessionDaoImpl implements Top10SessionDao {

  @Override
  public void insert(Top10Session top10Session) {
    String sql = "insert into top10_category_session values(?,?,?,?)";

    Object[] params = new Object[] {
        top10Session.getTaskid(), top10Session.getCategoryid(), top10Session.getSessionid(),
        top10Session.getClickCount() };

    JDBCHelper.getInstance().executeUpdate(sql, params);
  }

}
